package cn.stylefeng.guns.modular.pandian.mapper;

import cn.stylefeng.guns.modular.pandian.entity.PandianJihuaDetailed;
import cn.stylefeng.guns.modular.pandian.model.params.PandianJihuaDetailedParam;
import cn.stylefeng.guns.modular.pandian.model.result.PandianJihuaDetailedResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 盘点明细表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2022-01-07
 */
public interface PandianJihuaDetailedMapper extends BaseMapper<PandianJihuaDetailed> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    List<PandianJihuaDetailedResult> customList(@Param("paramCondition") PandianJihuaDetailedParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") PandianJihuaDetailedParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    Page<PandianJihuaDetailedResult> customPageList(@Param("page") Page page, @Param("paramCondition") PandianJihuaDetailedParam paramCondition, @Param("condition") String condition);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2022-01-07
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") PandianJihuaDetailedParam paramCondition);

	PandianJihuaDetailedResult sumByspec(@Param("paramCondition")PandianJihuaDetailedParam param);

	PandianJihuaDetailedResult findPanDianPositionBySpec(@Param("paramCondition")PandianJihuaDetailedParam pandianJihuaDetailedParam,
			@Param("userId")Long userId, @Param("diskId")Long diskId);

	List<PandianJihuaDetailedResult> findPanDianGoodsListBySpec(@Param("paramCondition")PandianJihuaDetailedParam pandianJihuaDetailedParam,
			@Param("userId")Long userId, @Param("diskId")Long diskId);

	List<PandianJihuaDetailedResult> findPanDianTrayListBySpec(@Param("paramCondition")PandianJihuaDetailedParam pandianJihuaDetailedParam,
			@Param("userId")Long userId, @Param("diskId")Long diskId);

	List<PandianJihuaDetailedResult> findPanDianPositionListBySpec(@Param("paramCondition")PandianJihuaDetailedParam pandianJihuaDetailedParam,
			@Param("userId")Long userId, @Param("diskId")Long diskId);

	PandianJihuaDetailedResult findBySpec(@Param("paramCondition")PandianJihuaDetailedParam param);

}
